import request from './index'

// 登录
export function getData(params: any) {
  return request({
    url: '/login',
    method: 'post',
    params
  })
}

// 发送消息
export function sendMsg(params: any) {
  return request({
    url: '/sendMsg',
    method: 'post',
    params
  })
}

// 获取open_id
export function getid(params: any) {
  return request({
    url: '/getid',
    method: 'post',
    params
  })
}

// 创建任务
export function sendTask(data: any) {
  return request({
    url: 'sendtask',
    method: 'post',
    data
  })
}